<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::namespace('Web')->group(function () {
    // 在 「App\Http\Controllers\Admin」 命名空间下的控制器
    Route::any('/WebSocket','GroupChat@WebSocket');
    Route::any('/index','GroupChat@index');
    Route::any('/chat','GroupChat@chat');
});

Route::get('/getFriendList', 'Dawn\FriendController@getFriendList');
Route::get('/addFriendList', 'Dawn\FriendController@addFriendList');
////聊天页面路由
//Route::namespace('Lt')->prefix('lt')->group(function () {
//    // 在 「App\Http\Controllers\Lt」 命名空间下的控制器
//    Route::get('/index', 'IndexController@index');
//});


